package com.taxshare.purchaser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.taxshare.mybatis.entity.BaseEntity;
import com.taxshare.purchaser.constant.TableConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author YANG
 * @ClassName: ApplicationRecordEntity
 * @Description:
 * @date 2021-04-09
 */
@Data
@ApiModel(description = "申请记录")
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(TableConstant.T_PURCHASER_APPLICATION_RECORD)
public class ApplicationRecordEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("uuid")
    private String uuid;

    @ApiModelProperty("审批记录编号")
    @TableField("record_no")
    private String recordNo;

    @ApiModelProperty("申请日期")
    @TableField("application_date")
    private String applicationDate;

    @ApiModelProperty("申请事由")
    @TableField("application_reasons")
    private String applicationReasons;

    @ApiModelProperty("申请人")
    @TableField("application_person")
    private String applicationPerson;

    @ApiModelProperty("审批状态 1 未审批 2 已通过 3 已驳回 4 已撤销")
    @TableField("approval_status")
    private String approvalStatus;

    @ApiModelProperty("审批意见")
    @TableField("approval_comments")
    private String approvalComments;

    @ApiModelProperty("发票类型")
    @TableField("ticket_types")
    private String ticketTypes;

    @ApiModelProperty("录入时间")
    @TableField("create_time_str")
    private String createTimeStr;

    @ApiModelProperty("审批人")
    @TableField("approval_user")
    private String approvalUser;

    @ApiModelProperty("审批人Id")
    @TableField("approval_user_id")
    private String approvalUserId;


}